package com.yanjue.client;

import com.yanjue.common.util.Result;
import com.yanjue.fallback.LikeSeeFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户喜欢看的书客户端
 */
@FeignClient(contextId = "like",name = "light-reading-cloud-account",fallbackFactory = LikeSeeFallback.class)
public interface LikeSeeClient {

    @RequestMapping("/account/like-see/get-count")
    Result<Integer> getBookLikesCount(@RequestParam("bookId") String bookId);
}
